package com.yeskery.nut.web.demo.event;

import com.yeskery.nut.event.ApplicationListener;
import com.yeskery.nut.event.ApplicationStartingEvent;

import java.util.logging.Logger;

/**
 * 应用启动事件监听器
 * @author YESKERY
 * 2023/9/12
 */
public class ApplicationStartingListener implements ApplicationListener<ApplicationStartingEvent> {

    /** 日志对象 */
    private static final Logger logger = Logger.getLogger(ApplicationStartingListener.class.getName());

    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {
        logger.info("服务开始启动");
    }
}
